// pages/share/info/index.js
const app = getApp()
const db = wx.cloud.database()
const _ = db.command

Page({

    /**
     * 页面的初始数据
     */
    data: {
        info:[],
    },

    toback() {
        wx.navigateBack({
          delta: 0,
          success: (res) => {},
          fail: (res) => {},
          complete: (res) => {},
        })
    },

    LookPhoto: function (e) {
        console.log(e);
        const fileIDs = e.currentTarget.dataset.photurl
        console.log(fileIDs);

        wx.previewImage({
            current: fileIDs,
            urls: fileIDs
        })
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {
        this.setData({
            info: app.globalData.shareInfo
        })

        // this.setData({
        //     str: str
        // })
    },

   
})